//
//  SQLiteManager.h
//  oc数据库demo
//
//  Created by whong7 on 16/9/26.
//  Copyright © 2016年 whong7. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "FMDatabase.h"
#import "CNGoodsModel.h"


@interface SQLiteManager : NSObject

// 全局访问点
+ (instancetype)sharedSQLiteManager;
@property (nonatomic, strong) FMDatabase *db;

//创建表
- (void)createTable;
//创建数据库
- (void)createDataBase;
//查询
- (NSArray *)queryContact;
//加入一个模型
-(void)charu:(NSObject *)model With:(int)addCount;
//拿到加工后的模型数组
-(NSArray *)getValueWith:(NSArray *)modelArray;

- (CNGoodsModel *)beInclude:(CNGoodsModel *)model With:(int)addCount;

// 清除表-清数据
- (void) eraseTable;

@end
